package com.news.service;

import com.news.DAO.usersDAO;
import com.news.entity.Users;

public class usersService {
	public int loginService(String username,String password)
	{
		usersDAO dao=new usersDAO();
		Users user=(Users)dao.selectUserByNamePass(username, password);
		if(user==null)
		{
			return 0;
		}
		else
		{
			return 1;
		}
	}
}
